package com.demo.travel.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.demo.travel.R;
import com.demo.travel.bean.ItemBean;

public class EventAdapter extends BaseQuickAdapter<ItemBean, BaseViewHolder> {

    public EventAdapter(){
        super(R.layout.item_event);
    }

    @Override
    protected void convert(BaseViewHolder helper, ItemBean item) {

        helper.setText(R.id.titleTv, item.getTitle())
                .setImageResource(R.id.imageView, item.getImage());
    }
}
